
$(function(){
	//下一页按钮所在的div
	var wrap = document.getElementById("wrap");
	touch.on(wrap,"touchstart",function(e){
		var  event1=window.event||e;
//		event1.preventDefault();
	})
	touch.on(wrap,"swipeup",function(e){
		location.href = "second.html";
	});

	
	
	
		
	
	//图片动画
	$(".imgleft1").animate({
	left:'0',
	top:'0'
	},1000);
	$(".imgright1").animate({
	left:'0',
	top:'0'
	},1000);
	$(".imgbottom1").animate({
	left:'0',
	top:'40%'
	},1500);
	$(".imgbottom2").animate({
	left:'28%',
	top:'61%'
	},1500);
	$(".imgright3").animate({
	left:'22%',
	top:'22%'
	},1500);
	$(".imgright2").animate({
	left:'0',
	top:'36%'
	},1500);
	$(".imgright4").animate({
	left:'27%',
	top:'42%'
	},1500);
	$(".imgtop1").animate({
	left:'40.5%',
	top:'0',
	height: '87%'
	},1800);
	$(".imgtop2").animate({
	left:'55%',
	top:'0',
	height: '51%'
	},2000);
	var textd=document.getElementById("textd");
	var textr=document.getElementById("textr");
	var texte=document.getElementById("texte");
	var textm=document.getElementById("textm");
	var cxtext=document.getElementById("cxtext");
//	var stara=document.getElementById("stara");
//	var starb=document.getElementById("starb");
	var top=document.getElementById("top");
	setInterval(function(){
		textd.style.animation="textanimate 2s";
		textd.style.animationFillMode = "forwards";
		textr.style.animation="textanimate 2s";
		textr.style.animationFillMode = "forwards";
		texte.style.animation="textanimate 2.4s";
		texte.style.animationFillMode = "forwards";
		textm.style.animation="textanimate 2.6s";
		textm.style.animationFillMode = "forwards";
		textmaker.style.animation="textanimate 2.8s";
		textmaker.style.animationFillMode = "forwards";
		top.style.overflow="hidden";
		cxtext.style.opacity=1;
		cxtext.style.animation="cxanimate 2.8s ";
		cxtext.style.animationFillMode = "forwards";
	},2000)
	setInterval(function(){
		stara.style.opacity=1;
		stara.style.animation="stara 5s ";
		stara.style.animationFillMode = "forwards";
		starb.style.opacity=1;
		starb.style.animation="starb 2s ";
		starb.style.animationFillMode = "forwards";
		
		
	},4800)

});	

